﻿// <copyright file="OutGameView.cs" company="ThorIndustry">Copyright (c) ThorIndustry. All rights reserved.</copyright>

using System.Collections.Generic;

public class OutGameView : View
{
    public float CameraDefaultSize = 12;

    public override void BackMenu()
    {
        this.ShowMenu(typeof(MainMenu));
    }
    
    public override void Show(params object[] parameters)
    {
        // Reset camera default size.
        ICameraService cameraService = Services.GetService<ICameraService>();
        cameraService.SetOrthograhicSize(this.CameraDefaultSize);

        UnityEngine.Debug.Log("OutGameView Show.");
        base.Show(parameters);

        // Select a puzzle and go to the puzzle view...
        if (this.CurrentMenu == null)
        {
            this.ShowMenu(typeof(MainMenu));
        }
    }
}

